<%@ page contentType="text/html; charset=utf-8" %>

<%@ include file="/WEB-INF/jsp/includeTaglib.jsp" %>

<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="rowHead">
		<td height="20" nowrap align="center" class="globalTextBold">项目名称</td>
		<td height="20" nowrap align="center" class="globalTextBold">项目状态</td>
		<td height="20" nowrap align="center" class="globalTextBold">创建人</td>
		<td height="20" nowrap align="center" class="globalTextBold">开始-截止时间</td>
		<td height="20" nowrap align="center" class="globalTextBold">类型</td>
		<td height="20" nowrap align="center" class="globalTextBold">项目负责人</td>
		<td height="20" nowrap align="center" class="globalTextBold">操作</td>
	</tr>

	<c:forEach var="project" items="${page.data}" varStatus="status">
		<tr class="rowClass">
			<td height="20" class="globalText">${project.name}</td>
			<td height="20" class="globalText">${project.status}</td>
			<td height="20" class="globalText">${project.user.displayName}</td>
			<td height="20" class="globalText">
				<fmt:formatDate value="${project.startDate}" pattern="yyyy-MM-dd"/> ~ <fmt:formatDate value="${project.endDate}" pattern="yyyy-MM-dd"/>
			</td>
			<td height="20" class="globalText">${project.category.name}</td>
			<td height="20" class="globalText">${project.managerName}</td>
			<td height="20" class="globalText">
				<input type="button" class="btnStyle" value="编辑" onclick="javascript:window.location='<c:url value='/project/editProjectMain.html?projectId=${project.id}' />'">
				<input type="button" class="btnStyle" value="删除" onclick="javascript:if(confirm('确认删除?'))window.location='<c:url value='/project/removeProject.html?projectId=${project.id}' />'">
			</td>
		</tr>
	</c:forEach>

</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>
